package com.mes.service.cb;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.cb.PlanDetailedMapper;
import com.mes.entity.cb.PageBean;
import com.mes.entity.cb.PlanDetailed;
import com.mes.entity.tdd.Supplier;

/**
 * @ClassName: PlanDetailedServiceImpl 
 * @Description:采购明细
 * @Author cb
 * @Date 2017年12月21日 上午10:20:56 
 * @version 1.0
 */
@Service
@Transactional
public class PlanDetailedServiceImpl implements PlanDetailedService{
	
	@Resource
	private PlanDetailedMapper planDetailedMapper;

	@Override
	public int getTotal(PageBean page) {
		return planDetailedMapper.getTotal(page);
	}

	@Override
	public List<PlanDetailed> PlanDetailedList(PageBean page) {
		return planDetailedMapper.PlanDetailedList(page);
	}

	@Override
	public List<PlanDetailed> materieAll() {
		return planDetailedMapper.materieAll();
	}

	@Override
	public List<Supplier> supperAdd() {
		return planDetailedMapper.supperAdd();
	}


	@Override
	public Long planDetailedAdd(PlanDetailed planDetailed) {
		return planDetailedMapper.planDetailedAdd(planDetailed);
	}

	@Override
	public int planDetailedEdit(PlanDetailed planDetailed) {
		return planDetailedMapper.planDetailedEdit(planDetailed);
	}

	@Override
	public int planDetailedDelete(String ids) {
		String id = ids;
		return planDetailedMapper.planDetailedDelete(id);
	}
	
}
